import service from '@/utils/request'

export const useOpenhubApi = (id: number) => {
	return service.get('/openhub/openhub/' + id)
}

export const useOpenhubSubmitApi = (dataForm: any) => {
	if (dataForm.id) {
		return service.put('/openhub/openhub', dataForm)
	} else {
		return service.post('/openhub/openhub', dataForm)
	}
}